package com.xxg.renrensearch.domain.fieldenum;

/**
 * 带货权限枚举
 *
 * @author xxg
 * @date 2021/12/6
 */
public enum CarryAuthEnum {
    /**
     * 需要申请
     */
    REQUIRED("需要申请", 0),
    /**
     * 无需申请
     */
    UN_REQUIRED("无需申请", 1),
    /**
     * 不允许带货
     */
    NOT_ALLOWED("不允许带货", 2);
    /**
     * 枚举的名称
     */
    private final String name;
    /**
     * 枚举的代码
     */
    private final Integer value;

    CarryAuthEnum(String name, Integer value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public Integer getValue() {
        return value;
    }

    @Override
    public String toString() {
        return this.value + "_" + this.name;
    }
}
